<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			/*
			    面向过程(c)
			   面向对象(java,c++)
			*/

			function Person(name, age) {
				this.name = name;
				this.age = age;
			}

			function Student(name, age, score) {
				// this.name = name;
				// this.age = age;
				Person.call(this, name, age);
				this.score = score;
			}

			var s = new Student("张三", 20, 96);

			function Worker(name, age, salary) {
				// this.name = name;
				// this.age = age;
				this.salary = salary;
			}

			var wk = new Worker("李四", 30, 998);
		</script>
	</head>
	<body>
	</body>
</html>
